import java.util.ArrayList;

public class Exercise15_01{
    public static void main(String[] args){
        ArrayList<Integer> arrList = new ArrayList<Integer>();
        for(int i = 5; i >= 0; i--){
            arrList.add(i);
        }
        
        for(int i = 0; i < arrList.size() - 1; i++){
            for(int j = i + 1; j < arrList.size(); j++){
                if(arrList.get(i) < arrList.get(j)){
                    int temp = arrList.set(i, arrList.get(j));
                    arrList.set(j, temp);
                }
            }
        }
        
        for(int item : arrList){
            System.out.println(item);
        }
    }
}